<?php
/**
 * Created by novebeta.
 * Date: 12/3/12
 * Time: 12:49 PM
 */
class ElfinderController extends BackEndController
{
    public function actions()
    {
        return array(
            'connector' => array(
                'class' => 'ext.elFinder.ElFinderConnectorAction',
                'settings' => array(
                    'root' => Yii::getPathOfAlias('webroot') . '/img/media/',
                    'URL' => Yii::app()->baseUrl . '/img/media/',
                    'rootAlias' => 'Home',
                    'mimeDetect'   => 'internal',
                    'uploadAllow'  => array('image'),
                    'uploadDeny'   => array('all'),
                    'uploadOrder'  => 'deny,allow',
                )
            ),
            'agenda' => array(
                'class' => 'ext.elFinder.ElFinderConnectorAction',
                'settings' => array(
                    'root' => Yii::getPathOfAlias('webroot') . '/img/agenda/',
                    'URL' => Yii::app()->baseUrl . '/img/agenda/',
                    'rootAlias' => 'Home',
                    'mimeDetect' => 'images'
                )
            ),
        );
    }

}